package com.zn.utils
{
    import flash.display.DisplayObject;
    import flash.net.URLRequest;
    import flash.net.navigateToURL;
    
    import mx.core.ClassFactory;
    import mx.utils.ObjectUtil;

    public class ObjectUtil
    {
        public function ObjectUtil()
        {
        }

		public static function CreateDic(list:Array,fieldName:String):Object
		{
			var dic:Object={};
			var obj:Object;
			
			for (var i:int = 0; i < list.length; i++) 
			{
				obj=list[i];
				dic[obj[fieldName]]=obj;
			}
			
			return dic;
			
		}
    }
}